using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class CameraTextureTester : MonoBehaviour
{
    [SerializeField] private RawImage image;
    [SerializeField] private Camera targetCamera;
    private RenderTexture renderTexture;

    private void Awake()
    {
        renderTexture = new RenderTexture(640, 480, 24, RenderTextureFormat.ARGB32);//RenderTexture.GetTemporary(640, 480, 24, RenderTextureFormat.ARGB32);
        targetCamera.targetTexture = renderTexture;

        image.texture = renderTexture;
    }


}
